<template>
  <section class="pageMain">
    <img class="headImg" :src="imgss[0].image" alt="">
    <div class="title">
      <img class="titleBack" src="@/assets/titleBack.png" alt="">
      <div class="mainTitle">SERVICE SUPPORT</div>
      <div class="subTitle">{{ $t('home.service.title') }}</div>
    </div>

    <div class="server">
      <div class="server_bottom">
        <div class="desc s_i" v-for="item in slist">
          <div class="header">
            <img src="@/assets/home/desc_icon.png" />
            <span>{{ item.title }}</span>
          </div>
          <div class="dcontent">
           {{ item.description }}
          </div>
          <img style="width: 490px;height: 200px" :src="item.image"></img>
        </div>
<!--        <div class="desc s_i">-->
<!--          <div class="header">-->
<!--            <img src="@/assets/home/desc_icon.png" />-->
<!--            <span>{{ $t('home.service.list.item2.title') }}</span>-->
<!--          </div>-->
<!--          <div class="dcontent">-->
<!--            {{ $t('home.service.list.item2.content') }}-->
<!--          </div>-->
<!--          <v-img contain width="490" height="200" src="@/assets/home/server1.png"></v-img>-->
<!--        </div>-->
      </div>
    </div>

    <div style="width: 100%;background-color: #00A3E6;">
      <div class="programme">
        <div class="left">
          <div class="top">
            <div> {{ $t('home.service.title2') }}</div>
            <div>Provide multiple solutions</div>
          </div>
          <div class="bottom">
            {{ $t('home.service.subtitle') }}
          </div>
        </div>
        <div class="right">
          <v-img class="right_img" contain width="210" height="162" src="@/assets/home/fa1.png"></v-img>
          <v-img class="right_img" contain width="210" height="162" src="@/assets/home/fa2.png"></v-img>
          <v-img class="right_img" contain width="210" height="162" src="@/assets/home/fa3.png"></v-img>
        </div>
      </div>
    </div>

    <div class="title">
      <img class="titleBack" src="@/assets/titleBack.png" alt="">
      <div class="mainTitle">INDUSTRY CASES</div>
      <div class="subTitle">{{ $t('service.hyal.title') }}</div>
    </div>
    <div class="cases">
      <div class="item" v-for="item in caseList">
        <img :src="item.image" alt="">
        <p>{{ item.title }}</p>
      </div>
    </div>

  </section>
</template>

<script>
// import 
import {getContent} from "@/api/new";

export default {
  name: "productClass",
  data: () => ({
    image: "",
    slist:[],
    caseList:[]
  }),
  computed:{
    imgss(){
      return this.$store.state.storeThereNavList.filter(item => item.mid == 8)
    }
  },
  created() {
    let arr = this.$store.state.storeThereNavList
    for (let i = 0; i < arr.length; i++) {
      if (arr[i].mid == 8) {
        this.image = arr[i].image
        break;
      }
    }
    getContent({
      mid:8
    }).then(res => {
      this.slist = res.data
    }).catch(err => {

    })
    getContent({
      mid: 7
    }).then(res => {
      this.caseList = res.data
    }).catch(err => {

    })
  }
}
</script>


<style scoped lang="less">
.pageMain {

  .headImg {
    width: 100%;
    height: 300px;
  }

  .title {
    padding: 60px;
    box-sizing: content-box;
    position: relative;
    text-align: center;
    height: 126px;

    .titleBack {
      position: absolute;
      left: calc((100% - 30px) / 2);
      width: 30px;
      height: 127px;
    }

    .mainTitle {
      font-weight: 800;
      font-size: 36px;
      color: #333333;
      margin-top: 25px;
    }

    .subTitle {
      color: #00A3E6;
      font-size: 18px;
    }
  }

  .server {
    margin-bottom: 120px;

    .top1 {
      font-weight: bold;
      font-size: 36px;
      color: #333333;
      text-align: center;
      margin-bottom: 6px;
    }

    .top2 {
      color: #00A3E6;
      font-size: 18px;
      text-align: center;
      margin-bottom: 92px;
    }

    .server_bottom {

      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      width: 1200px;
      flex-wrap: wrap;
      .s_i {
        width: 490px;
        margin-top: 60px;
        .dcontent {
          margin-bottom: 80px;
        }
      }
    }


  }

  .programme {
    display: flex;
    height: 320px;
    width: 1200px;
    margin: 0 auto;

    .left {
      width: 380px;
      height: 100%;
      display: flex;
      align-content: center;
      flex-wrap: wrap;

      .top {
        //display: flex;

        div:nth-child(1) {
          font-size: 32px;
          color: #FFFFFF;
        }

        div:nth-child(2) {
          font-size: 24px;
          color: rgba(255, 255, 255, 0.37);
        }
      }

      .bottom {
        margin-top: 20px;
        font-size: 16px;
        color: #FFFFFF;
      }
    }

    .right {
      width: calc(100% - 420px);
      padding-left: 150px;
      display: flex;
      align-items: center;

      .right_img {
        margin-right: 20px;
      }
    }
  }

  .desc {
    width: 100%;

    .header {
      display: flex;
      //justify-content: left;
      font-size: 24px;
      color: #333333;
      height: 40px;
      margin-bottom: 50px;

      image {
        width: 40px;
        height: 40px;
      }

      span {
        margin-left: 15px;
        line-height: 40px;
      }
    }

    .dcontent {
      font-size: 14px;
      color: #666666;
      line-height: 30px;
      max-height: 260px;
    }

  }

  .cases {
    padding-bottom: 100px;
    width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .item {
      margin-top: 30px;
      width: 386px;

      img {
        width: 100%;
        height: 296px;
      }

      p {
        text-align: center;
        margin-top: 15px;
        color: #333333;
        font-size: 16px;
      }
    }
  }
}
</style>